package design.Day04;

/**
* @description: 切换命令
* @author: wangjun
* @create: 2022-01-21
*/
public class LightCommand implements Command {
    Light light;

    public void setLight(Light light) {
        this.light = light;
    }

    @Override
    public void execute() {
        light.on();
    }
}
